import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const analysis: AppRouteModule = {
  path: '/baas/analysis',
  name: 'BaasAnalysis',
  component: LAYOUT,
  redirect: '/baas/analysis/index',
  meta: {
    hideChildrenInMenu: true,
    icon: 'ion:grid-outline',
    title: t('routes.baas.analysis.center'),
    orderNo: 0,
  },
  children: [
    {
      path: 'index',
      name: 'BaasAnalysisPage',
      component: () => import('/@/views/baas/analysis/index.vue'),
      meta: {
        title: t('routes.baas.analysis.center'),
        icon: 'ion:grid-outline',
        hideMenu: true,
      },
    },
  ],
};

export default analysis;
